﻿using Microsoft.Extensions.Logging;
using NLog;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;

namespace AbpApplication.Expand
{
    public  class LoginHelpers : ApplicationService,ILoginHelper
    {

    
        public void LoginAsync(object InPut, string Title)
        {
            var sb = new StringBuilder();
            sb.Append(Title);
            // 遍历InPut对象的属性并添加到字符串中  
            foreach (var property in InPut.GetType().GetProperties())
            {
                var value = property.GetValue(InPut);
                sb.Append($"{property.Name}: {value?.ToString() ?? "null"}, ");
            }
            Logger.LogWarning(sb.ToString());
        }
    }
}
